export function getTime(intervalDay) {
  let now = new Date();

  let year = now.getFullYear();
  let month = format(now.getMonth() + 1);
  let day = format(now.getDate() + intervalDay);

  //   let hour = format(now.getHours());
  //   let minute = format(now.getMinutes());
  //   let second = format(now.getSeconds());

  function format(t) {
    return t < 10 ? "0" + t : t;
  }
  let y = year.toString();
  let m = month.toString();
  let d = day.toString();
  return (
    // year + "/" + month + "/" + day + "/" + hour + "/" + minute + "/" + second
    // year + "-" + month + "-" + day + "T14:00:00.000Z"
    [y, m, d]
  );
}
